﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PominaScale.Reports
{
    public partial class FrmPrintPreview : Form
    {
        public FrmPrintPreview(object report)
        {
            InitializeComponent();
            
            crystalReportViewer1.ReportSource = report;

            this.btnPrint.Click += new EventHandler(btnPrint_Click);
        }

        void btnPrint_Click(object sender, EventArgs e)
        {
            crystalReportViewer1.PrintReport();
        }
    }
}
